package com.video;

/*
 * @author:周洋帆
 * @description：各种信息的集合体（类似于c语言中的结构体）
 * @see
 *     ResultSet：描述最终需要获取的结果格式，最终展示页面需要视频标题，链接和截图三个信息。如果
 *         需要返回一些列视频，只需使用list格式即可。
 *     YoukuInfo：调用优酷api的返回结果提取格式，主要有视频链接，标题，截图，观看人数，分类，标签。
 *     TudouInfo：调用土豆api的返回结果格式。主要有视频链接，标题，截图，观看人数，标签。（没有分类）
 *  
 */

public class ResultSet {
	public String videoUrl;
	public String picUrl;
	public String title;
	
	public String getVideoUrl(){
		return videoUrl;
	}
	public String getPicUrl(){
		return picUrl;
	}
	public String getTitle(){
		return title;
	}
	
	public void setVideoUrl(String videoUrl){
		this.videoUrl=videoUrl;
	}
	public void setPicUrl(String picUrl){
		this.picUrl=picUrl;
	}
	public void setTitle(String title){
		this.title=title;
	}

}

class YoukuInfo{
	private String videoName;
	private String captureUrl;
	private String videoUrl;
	private String category;
	private String tags;
	private int viewCount;
	private int favoriteCount;
	
	public void setVideoName(String videoName){
		this.videoName=videoName;
	}
	public void setCaptureUrl(String captureUrl){
		this.captureUrl=captureUrl;
	}
	public void setVideoUrl(String videoUrl){
		this.videoUrl=videoUrl;
	}
	public void setCategory(String category){
		this.category=category;
	}
	public void setTags(String tags){
		this.tags=tags;
	}
	public void setViewCount(int viewCount){
		this.viewCount=viewCount;
	}
	public void setFavoriteCount(int favoriteCount){
		this.favoriteCount=favoriteCount;
	}
	
	
	public String getVideoName(){
		return videoName;
	}
	public String getVideoUrl(){
		return videoUrl;
	}
	public String getCaptureUrl(){
		return captureUrl;
	}
	public String getCategory(){
		return category;
	}
	public String getTags(){
		return tags;
	}
	public int getViewCount(){
		return viewCount;
	}
	public int getFavoriteCount(){
		return favoriteCount;
	}
}

class TudouInfo {
	private String videoName;
	private String captureUrl;
	private String videoUrl;
	private String tags;
	private int playTimes;
	private int favorCount;
	
	public void setVideoName(String videoName){
		this.videoName=videoName;
	}
	public void setCaptureUrl(String captureUrl){
		this.captureUrl=captureUrl;
	}
	public void setVideoUrl(String videoUrl){
		this.videoUrl=videoUrl;
	}
	public void setTags(String tags){
		this.tags=tags;
	}
	public void setPlayTimes(int playTimes){
		this.playTimes=playTimes;
	}
	public void setFavorCount(int favorCount){
		this.favorCount=favorCount;
	}
	
	public String getVideoName(){
		return videoName;
	}
	public String getVideoUrl(){
		return videoUrl;
	}
	public String getCaptureUrl(){
		return captureUrl;
	}
	public String getTags(){
		return tags;
	}
	public int getPlayTimes(){
		return playTimes;
	}
	public int getFavorCount(){
		return favorCount;
	}
}
